package com.dinim.test.physics2dlibrary;

import java.util.Random;

import com.dinim.common.StopWatch;
import com.dinim.physics2D.Aabb;
import com.dinim.physics2D.AabbSingleBoundingBox;
import com.dinim.physics2D.BoundingBox2D;

public class AABBTester {

    public static void main(String[] args) {
        
        StopWatch sw = new StopWatch();

        Aabb aabb = new AabbSingleBoundingBox(500, 500, 15, 15);

        sw.start();
        
        Random r = new Random();
        for(int i = 0; i < 1500; i++){
            //aabb.addBoundingBox(new BoundingBox2D(r.nextInt(500), r.nextInt(500), r.nextInt(500), r.nextInt(500)));
        }
        
        sw.stop();
        
        System.out.println(sw.getElapsedTime());
        
        System.out.println(aabb.toString());
    }
    
}
